package vip.finance.makemoney.apiSpider.snowball;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 雪球api
 *
 * @author 杨滨
 * @date 2023年02月03日
 */
@FeignClient(name = "snowStockApi", url = "${feign.rpc.snow_stock_api_url}")
public interface SnowStockApi {
    //实时
    @GetMapping(value = "/v5/stock/batch/quote.json")
    SnowRealTimeResult realTime(@RequestParam("symbol") String symbol, @RequestParam("extend") String extend);

    //etf行情列表
    @GetMapping(value = "/v5/stock/screener/fund/list.json")
    SnowEtfRes listEtf(@RequestParam("type") Integer type,
                       @RequestParam("parent_type") Integer parent_type,
                       @RequestParam("order") String order,
                       @RequestParam("order_by") String order_by,
                       @RequestParam("page") Integer page,
                       @RequestParam("size") Integer size);
}
